import Vue from 'vue'
import App from './App'
import router from './router'
import store from './store'
import './assets/common.css'
import permission from './utils/permission.js'  //路由权限管理

// 引入完整得element库
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI)
// 消息弹窗
Vue.prototype.$message=ElementUI.Message

// //引入网络请求
// import {postRequest} from './api/index.js';
// import {putRequest} from './api/index.js';
// import {deleteRequest} from './api/index.js';
// import {getRequest} from './api/index.js';
// Vue.prototype.getRequest=getRequest;
// Vue.prototype.deleteRequest=deleteRequest;
// Vue.prototype.putRequest=putRequest;
// Vue.prototype.postRequest=postRequest;

//chrome插件调试
Vue.config.devtools = true

Vue.config.productionTip = false

new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})
